package qiti;

public class demo2por {
    private int age;
    //.............................
    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        if (age<0||age>150){
            System.out.println("输入不合法");
        }
        else {
            this.age = age;

        }
    }
}